package cn.findviewbydream.evil.main.entity

import java.io.Serializable
import java.util.*

/********************************************
 * 工程名：MealOrder
 * 包名：cn.findviewbydream.evil.main.entity
 * 时间：16-12-21
 * 作者：白雨濃 evil
 * 邮箱：evilbai@foxmail.com
 * 内容：菜品实体
 ********************************************/
class MealEntity : Serializable
{
    var mealId = 0/*菜品id*/
    var name = ""/*菜品名称*/
    var imgs = ""/*菜品图片 json数组*/
    var synopsis: String? = null/*简介*/
    var mealType: BaseMealTypeEntity? = null/*菜品类型类型*/
    var cookType: BaseTypeOfWorkEntity? = null/*制作此菜品的员工的类型*/
    var price = 0/*价格*100*/
    var cost: Int? = null/*成本*100 允许为空*/
    var monthToMarket: String? = null/*上市月份 格式为：月份-月份*/
    var addDateTime: Date? = null/*添加时间*/
    var fixDateTime: Date? = null/*最后修改时间*/
    var market = false/*是否售卖*/

    constructor()

    constructor(mealId: Int, name: String, imgs: String, synopsis: String, mealType: BaseMealTypeEntity?,
                cookType: BaseTypeOfWorkEntity?, price: Int, cost: Int?, monthToMarket: String, addDateTime: Date?,
                fixDateTime: Date?, market: Boolean)
    {
        this.mealId = mealId
        this.name = name
        this.imgs = imgs
        this.synopsis = synopsis
        this.mealType = mealType
        this.cookType = cookType
        this.price = price
        this.cost = cost
        this.monthToMarket = monthToMarket
        this.addDateTime = addDateTime
        this.fixDateTime = fixDateTime
        this.market = market
    }

    override fun toString(): String
    {
        return "MealEntity(mealId=$mealId, name='$name', imgs='$imgs', synopsis='$synopsis', mealType=$mealType, cookType=$cookType, price=$price, cost=$cost, monthToMarket='$monthToMarket', addDateTime=$addDateTime, fixDateTime=$fixDateTime, isMarket=$market)"
    }


}